-- GENERATED SPELL FOR [Tusker] --


function spell0_18290(pUnit, Event) --@Gore,n/a--
pUnit:FullCastSpellOnTarget(32019,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18290', 15000, 1)
end

function spell1_18290(pUnit, Event) --@Stomp,n/a--
pUnit:FullCastSpellOnTarget(12612,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18290', 614, 1)
end

function spell2_18290(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(15550,pUnit)
pUnit:RegisterEvent('Sorts_18290', 542, 1)
end

function Sorts_18290(pUnit, Event)
local choix_sorts_18290 = math.random(0, 2)
if choix_sorts_18290 == 0 then
pUnit:RegisterEvent('spell0_18290', 1, 1)
end
if choix_sorts_18290 == 1 then
pUnit:RegisterEvent('spell1_18290', 1, 1)
end
if choix_sorts_18290 == 2 then
pUnit:RegisterEvent('spell2_18290', 1, 1)
end
end

function mob18290_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18290', math.random(1500, 3000), 1)
end

function mob18290_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18290_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18290_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18290, 1, 'mob18290_Action')
RegisterUnitEvent(18290, 2, 'mob18290_Leave')
RegisterUnitEvent(18290, 3, 'mob18290_Kill')
RegisterUnitEvent(18290, 4, 'mob18290_Die')
